<%@ page pageEncoding="UTF-8"%>
<%@ page import="java.sql.*"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>回复</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>BBS/images/style.css" title="Integrated Styles">
<script language="JavaScript" type="text/javascript"
	src="images/global.js"></script>



<!-- fckeditor -->
<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
<script type="text/javascript">

window.onload = function()
{
	// Automatically calculates the editor base path based on the _samples directory.
	// This is usefull only for these samples. A real application should use something like this:
	// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
	// var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
	var sBasePath = "<%=request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
					+ request.getContextPath() + "/BBS/fckeditor/"%>"
//alert(sBasePath);
	var oFCKeditor = new FCKeditor( "cont" ) ;
	oFCKeditor.BasePath	= sBasePath ;
	oFCKeditor.ReplaceTextarea() ;
}

</script>
<!-- end of fckeditor -->

<link rel="alternate" type="application/rss+xml" title="RSS"
	href="http://bbs.chinajavaworld.com/rss/rssmessages.jspa?threadID=744236">
</head>
<body>
<%
			int aid = Integer.parseInt(request.getParameter("aid"));
			int bid = 0;

			Object id = session.getAttribute("bid");
			if (id == null) {
		%>
<script>alert('请先登录论坛！！');location.href='javascript:history.go(-1)'</script>

<%
		} else {
		%>
<table border="0" cellpadding="0" cellspacing="0" width="100%">

	<tbody>
		<tr>
			<td width="40%"><img
				src="<%=basePath%>BBS/images/header-stretch.gif" alt="" border="0"
				height="57" width="100%"></td>
			<td width="1%"><img
				src="<%=basePath%>BBS/images/header-right.gif" alt="" height="57"
				border="0"></td>
		</tr>
	</tbody>
</table>
<br>
<div id="jive-flatpage">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tbody>
		<tr valign="top">
			<td width="99%">
			<p class="jive-breadcrumbs"><a
				href="<%=basePath%>BBS/mainBBS.jsp">首页</a> &#187; <a
				href="http://bbs.chinajavaworld.com/forumindex.jspa?categoryID=1">ChinaJavaWorld技术论坛|Java世界_中文论坛</a>
			&#187; <a
				href="http://bbs.chinajavaworld.com/category.jspa?categoryID=2">Java
			2 Platform, Standard Edition (J2SE)</a> &#187; <a
				href="http://bbs.chinajavaworld.com/forum.jspa?forumID=20&amp;start=0">Java语言*初级版</a>
			</p>
			<p class="jive-page-title">主题:</p>
			</td>
			<td width="1%">
			<div class="jive-accountbox"></div>
			</td>
		</tr>
	</tbody>
</table>
<div class="jive-buttons">
<table summary="Buttons" border="0" cellpadding="0" cellspacing="0">
	<tbody>
		<tr>
			<td class="jive-icon"><a><img
				src="<%=basePath%>BBS/images/reply-16x16.gif" alt="回复本主题" border="0"
				height="16" width="16"> </a></td>
			<td class="jive-icon-label"><a id="jive-reply-thread"
				href="<%=basePath%>BBS/reply.jsp">回复本主题</a></td>
		</tr>
	</tbody>
</table>
</div>
<br>
<table border="0" cellpadding="0" cellspacing="0" width="930"
	height="61">
	<tbody>
		<tr valign="top">
			<td width="99%">
			<div id="jive-message-holder">
			<div class="jive-message-list">
			<div class="jive-table">
			<div class="jive-messagebox">

			<form action="<%=basePath%>bbsDealServlet?param=reply&aid=<%=aid%>"
				method="post">作者： <%=(String) session.getAttribute("userName")%>
			<br>
			内容： <textarea name="cont" rows="30" cols="80"></textarea> <br>
			<input type="submit" value="提交" /> &nbsp;&nbsp; <input type="reset"
				value="重置" /></form>

			</div>
			</div>
			</div>
			<div class="jive-message-list-footer">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tbody>
					<tr>
						<td nowrap="nowrap" width="1%"><br>
						<br>
						</td>
						<td align="center" width="98%">
						<table border="0" cellpadding="0" cellspacing="0">
							<tbody>
								<tr>
									<td><a><img
										src="<%=basePath%>BBS/images/arrow-left-16x16.gif"
										alt="返回到主题列表" border="0" height="16" hspace="6" width="16">
									</a></td>
									<td><a href="<%=basePath%>BBS/tiezi.jsp">返回到主题列表</a></td>
								</tr>
							</tbody>
						</table>
						</td>
						<td nowrap="nowrap" width="1%">&nbsp;</td>
					</tr>
				</tbody>
			</table>
			</div>
			</div>
			</td>
			<td width="1%">&nbsp;</td>
		</tr>
	</tbody>

</table>
</div>
<%
		}
		%>
</body>
</html>
